package com.lmu.travel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lmu.travel.entity.Order;

/**
 * @author liuxuhuang
 * @className: OrderService
 * @description: 订单service接口
 * @email liuxuhuang3970@qq.com
 * @date 2021/6/29 21:16
 * @version：1.0
 */
public interface OrderService extends IService<Order> {
    //查询订单
    Order findByOrderId(String orderId);

    //更新订单状态为已支付
    int updateStatusSuccess(String orderId);

    //更新订单状态为已超时未支付
    int updateStatusTimeOut(String orderId);


    int insert(Order order);
}
